package com.yjps.system.model;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by jessy on 2015/9/1.
 */

public class DemandCodeData {
    private List<String> house = new ArrayList<>();
    private List<String> city = new ArrayList<>();
    private List<String> county = new ArrayList<>();
    private List<String> town = new ArrayList<>();
    private List<String> area = new ArrayList<>();

    public List<String> getHouse() {
        return house;
    }

    public void setHouse(List<Code> houses) {
        if(houses != null && houses.size()>0){
            for(Code code : houses){
                house.add(code.getCodeValue());
            }
        }
    }

    public List<String> getCity() {
        return city;
    }

    public void setCity(List<Code> cities) {
        if(cities != null && cities.size()>0){
            for(Code code : cities){
                city.add(code.getCodeValue());
            }
        }
    }

    public List<String> getCounty() {
        return county;
    }

    public void setCounty(List<Code> counties) {
        if(counties != null && counties.size()>0){
            for(Code code : counties){
                county.add(code.getCodeValue());
            }
        }
    }

    public List<String> getTown() {
        return town;
    }

    public void setTown(List<Code> townes) {
        if(townes != null && townes.size()>0){
            for(Code code : townes){
                town.add(code.getCodeValue());
            }
        }
    }

    public List<String> getArea() {
        return area;
    }

    public void setArea(List<Code> areaes) {
        if(areaes != null && areaes.size()>0){
            for(Code code : areaes){
                area.add(code.getCodeValue());
            }
        }
    }
}
